using TestCases.Utils.Pairs;

namespace TestCases.CompareAssert.Core.Helpers
{
    public static class ObjectSideUtils
    {
        
        public static IPair<T, T> SelectPair<T>(this ObjectSide side, T left, T right)
        {
            switch (side)
            {
                case ObjectSide.Left:
                    return new Pair<T, T>(left,default(T));
                    
                case ObjectSide.Right:
                    return new Pair<T, T>(default(T), right);
                    
                case ObjectSide.Both:
                    return new Pair<T, T>(left, right);
                    
                default:
                    return new Pair<T, T>();
            }
        }
        
        
    }
}